INCLUDE = -I/usr/include/ 
LIBDIR  = -L/usr/X11R6/lib 

COMPILERFLAGS = -Wall
CC = g++-4.1
CFLAGS = $(COMPILERFLAGS) $(INCLUDE)
LIBRARIES = -lX11 -lGLEW -lglut -lGL -lGLU -lm -lCg -lCgGL -pthread 
SRCS = fbo.cpp
MAIN = main

LFLAGS = $(LIBDIR) $(LIBRARIES)

OBJS = $(SRCS:.cpp=.o)

$(MAIN):  $(OBJS)
	$(CC) $(OBJS) -o $(MAIN) $(LFLAGS)

.cpp.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $<

clean:
	rm -f *.o *~ $(MAIN)
